<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <!-- 开发环境版本，包含了有帮助的命令行警告 -->
<script src="vue.js"></script>
</head>
<body>
    <div id="root">
        <h1>指令语法</h1>
        <!-- <a :href="url">点我跳转</a> -->
        <a :href="school.url">点我跳转</a>
    </div>
   <script type="text/javascript">
    new Vue({
        el:'#root',
        data: {
            name:'学习',
            url:'http://www.baidu.com',
            school: {
                url:'http://www.baidu.com'
            }
        }
    })
   </script>
</body>
</html>